import {getCatagoryList} from '@/api/api' 

export default {
  namespaced:true,
  state: {
    navList:[]
  },
  mutations: {
    SET_NAV_LIST(state,val){
      state.navList = val
    }
  },
  actions: {  
    async getNavList(context){
      const res = await getCatagoryList()
      context.commit('SET_NAV_LIST',res.data.data)
    }
  }
}
